<?PHP $this->Html->css('management', null, array('inline' => false)); ?>

<div class="articlesCategories view">
<h2>Catégorie d'article #<?php echo h($articlesCategory['ArticlesCategory']['id_categorie']); ?></h2>
	
		<span>Description :</span>
		<p>
			<?php echo h($articlesCategory['ArticlesCategory']['description_categorie']); ?>
		</p>
</div>
<div class="actions">
	<h3><?php echo __('Vous pouvez aussi ...'); ?></h3>
	<ul><li><?php echo $this->Html->link(__('Modifier cette catégorie d\'articles'), array('action' => 'edit', $articlesCategory['ArticlesCategory']['id_categorie'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Supprimer cette catégorie d\'articles'), array('action' => 'delete', $articlesCategory['ArticlesCategory']['id_categorie']), null, __('Are you sure you want to delete # %s?', $articlesCategory['ArticlesCategory']['id_categorie'])); ?> </li>
		<li><?php echo $this->Html->link(__('Ajouter une catégorie d\'articles'), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('Consulter la liste des articles'), array('controller' => 'articles', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Créer un article'), array('controller' => 'articles', 'action' => 'add')); ?> </li>
	</ul>
</div>



<div class="related">
	<h3>Articles associés</h3>
	<?php if (!empty($articlesCategory['article'])):?>
	
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id Article'); ?></th>
		<th><?php echo __('Ref Article'); ?></th>
		<th><?php echo __('Description Article'); ?></th>
		<th><?php echo __('Tarif Brut'); ?></th>
		<th><?php echo __('Id Categorie'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($articlesCategory['article'] as $article): ?>
		<tr>
			<td><?php echo $article['id_article'];?></td>
			<td><?php echo $article['ref_article'];?></td>
			<td><?php echo $article['description_article'];?></td>
			<td><?php echo $article['tarif_brut'];?></td>
			<td><?php echo $article['id_categorie'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Voir'), array('controller' => 'articles', 'action' => 'view', $article['id_article'])); ?>
				<?php echo $this->Html->link(__('Modifier'), array('controller' => 'articles', 'action' => 'edit', $article['id_article'])); ?>
				<?php echo $this->Form->postLink(__('Supprimer'), array('controller' => 'articles', 'action' => 'delete', $article['id_article']), null, __('Are you sure you want to delete # %s?', $article['id_article'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>
	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Ajouter un article'), array('controller' => 'articles', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>

